Integrand size = 16, antiderivative size = 75 \[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\frac {a (c+d x)^2}{2 d}-\frac {b (c+d x)^2}{2 d}+\frac {b (c+d x) \log \left (1-e^{2 (e+f x)}\right )}{f}+\frac {b d \operatorname {PolyLog}\left (2,e^{2 (e+f x)}\right )}{2 f^2} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.312, Rules used = {3803, 3797, 2221, 2317, 2438} \[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\frac {a (c+d x)^2}{2 d}+\frac {b (c+d x) \log \left (1-e^{2 (e+f x)}\right )}{f}-\frac {b (c+d x)^2}{2 d}+\frac {b d \operatorname {PolyLog}\left (2,e^{2 (e+f x)}\right )}{2 f^2} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3797
Rule 3803
Rubi steps \begin{align*} \text {integral}& = \int (a (c+d x)+b (c+d x) \coth (e+f x)) \, dx \\ & = \frac {a (c+d x)^2}{2 d}+b \int (c+d x) \coth (e+f x) \, dx \\ & = \frac {a (c+d x)^2}{2 d}-\frac {b (c+d x)^2}{2 d}-(2 b) \int \frac {e^{2 (e+f x)} (c+d x)}{1-e^{2 (e+f x)}} \, dx \\ & = \frac {a (c+d x)^2}{2 d}-\frac {b (c+d x)^2}{2 d}+\frac {b (c+d x) \log \left (1-e^{2 (e+f x)}\right )}{f}-\frac {(b d) \int \log \left (1-e^{2 (e+f x)}\right ) \, dx}{f} \\ & = \frac {a (c+d x)^2}{2 d}-\frac {b (c+d x)^2}{2 d}+\frac {b (c+d x) \log \left (1-e^{2 (e+f x)}\right )}{f}-\frac {(b d) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 (e+f x)}\right )}{2 f^2} \\ & = \frac {a (c+d x)^2}{2 d}-\frac {b (c+d x)^2}{2 d}+\frac {b (c+d x) \log \left (1-e^{2 (e+f x)}\right )}{f}+\frac {b d \operatorname {PolyLog}\left (2,e^{2 (e+f x)}\right )}{2 f^2} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.16 \[ \int (c+d x) (a+b \coth (e+f x)) \, dx=a c x+\frac {1}{2} a d x^2-\frac {1}{2} b d x^2+\frac {b d x \log \left (1-e^{2 e+2 f x}\right )}{f}+\frac {b c (\log (\cosh (e+f x))+\log (\tanh (e+f x)))}{f}+\frac {b d \operatorname {PolyLog}\left (2,e^{2 e+2 f x}\right )}{2 f^2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(200\) vs. \(2(69)=138\).
Time = 0.19 (sec) , antiderivative size = 201, normalized size of antiderivative = 2.68
method | result | size |
risch | \(\frac {a d \,x^{2}}{2}+a c x -\frac {b d \,x^{2}}{2}+b c x +\frac {b c \ln \left ({\mathrm e}^{f x +e}-1\right )}{f}+\frac {b c \ln \left (1+{\mathrm e}^{f x +e}\right )}{f}-\frac {2 b c \ln \left ({\mathrm e}^{f x +e}\right )}{f}-\frac {2 b d e x}{f}-\frac {b d \,e^{2}}{f^{2}}+\frac {b d \ln \left (1-{\mathrm e}^{f x +e}\right ) x}{f}+\frac {b d \ln \left (1-{\mathrm e}^{f x +e}\right ) e}{f^{2}}+\frac {b d \operatorname {polylog}\left (2, {\mathrm e}^{f x +e}\right )}{f^{2}}+\frac {b d \ln \left (1+{\mathrm e}^{f x +e}\right ) x}{f}+\frac {b d \operatorname {polylog}\left (2, -{\mathrm e}^{f x +e}\right )}{f^{2}}-\frac {b d e \ln \left ({\mathrm e}^{f x +e}-1\right )}{f^{2}}+\frac {2 b d e \ln \left ({\mathrm e}^{f x +e}\right )}{f^{2}}\) | \(201\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 156 vs. \(2 (68) = 136\).
Time = 0.26 (sec) , antiderivative size = 156, normalized size of antiderivative = 2.08 \[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\frac {{\left (a - b\right )} d f^{2} x^{2} + 2 \, {\left (a - b\right )} c f^{2} x + 2 \, b d {\rm Li}_2\left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right )\right ) + 2 \, b d {\rm Li}_2\left (-\cosh \left (f x + e\right ) - \sinh \left (f x + e\right )\right ) + 2 \, {\left (b d f x + b c f\right )} \log \left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right ) + 1\right ) - 2 \, {\left (b d e - b c f\right )} \log \left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right ) - 1\right ) + 2 \, {\left (b d f x + b d e\right )} \log \left (-\cosh \left (f x + e\right ) - \sinh \left (f x + e\right ) + 1\right )}{2 \, f^{2}} \]
[In]
[Out]
\[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\int \left (a + b \coth {\left (e + f x \right )}\right ) \left (c + d x\right )\, dx \]
[In]
[Out]
\[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\int { {\left (d x + c\right )} {\left (b \coth \left (f x + e\right ) + a\right )} \,d x } \]
[In]
[Out]
\[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\int { {\left (d x + c\right )} {\left (b \coth \left (f x + e\right ) + a\right )} \,d x } \]
[In]
[Out]
Timed out. \[ \int (c+d x) (a+b \coth (e+f x)) \, dx=\int \left (a+b\,\mathrm {coth}\left (e+f\,x\right )\right )\,\left (c+d\,x\right ) \,d x \]
[In]
[Out]